package com.amoyt.project.domain.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 贫困个人信息表（记录致贫核心人员）
 * </p>
 *
 * @author AmoyT
 * @since 2025-08-21
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = false)
@Schema(description = "贫困个人信息表（记录致贫核心人员）")
@TableName("poverty_person")
public class PovertyPerson implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "贫困个人ID（25位字符串）")
    @TableId(value = "person_id", type = IdType.INPUT)
    private String personId;

    @Schema(description = "关联外键--贫困户ID")
    private String householdId;

    @Schema(description = "姓名")
    private String name;

    @Schema(description = "年龄")
    private Integer age;

    @Schema(description = "民族")
    private String ethnicGroup;

    @Schema(description = "0-男，1-女")
    private String sex;

    @Schema(description = "身份证号")
    private String idCard;

    @Schema(description = "与户主关系（如本人、配偶、子女等）")
    private String relation;

    @Schema(description = "致贫具体描述（如疾病、残疾、失业等）")
    private String povertyCause;

    @Schema(description = "户籍所在地-关联地址表-注意比较与户主地址是否一致")
    private Long addressId;

    @Schema(description = "受教育程度(小学，初中，高中，本科，...)")
    private String educationLevel;

    @Schema(description = "婚姻状况（0-未婚，1-已婚，2-离婚，3-丧偶）")
    private String maritalStatus;

    @Schema(description = "联系方式")
    private String contactWay;

    @Schema(description = "致贫类别，字符串哈")
    private String povertyType;

    @Schema(description = "是否核心致贫人员：0-否，1-是")
    private String isCore;

    @Schema(description = "创建时间")
    private Date createTime;

    @Schema(description = "创建人")
    private String createBy;

    @Schema(description = "修改时间")
    private Date updateTime;

    private String updateBy;

    @Schema(description = "逻辑删除：0-未删除，1-已删除")
    private Integer deleted;
}
